export function UnrealSpaceTrigger() {
    return {
        beforeOnPlayerPlace(source) {
            source.permutationToPlace = source.permutationToPlace.withState('STATE:stage', 1);
        }
    };
}
;
export function MagicCableTrigger() {
    return {
        beforeOnPlayerPlace(source) {
            source.permutationToPlace = source.permutationToPlace.withState('STATE:stage', false);
        }
    };
}
;
export function JungleWoodChairTrigger() {
    return {
        beforeOnPlayerPlace(source) {
            source.permutationToPlace =
                source.player?.isSneaking
                    ? source.permutationToPlace.withState('STATE:type', 1)
                    : source.permutationToPlace.withState('STATE:type', 0);
        }
    };
}
;
